﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FrienDev.BusinessRules;

public partial class Templates_Application : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (ApiHelper.Instance.IsFriendsPage())
        {
            string requestUserId = ApiHelper.Instance.GetRequestUserId();
            if (requestUserId != UserRules.Instance.GetCurrentUserId())
            {
                VisitorRules.Instance.AddVisitor(requestUserId);
            }
        }
    }
}
